<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Mickael Faivre-Macon" />
	<meta name="keywords" content="ptm, project, task, manager" />
	<meta name="description" content="A project and task manager" />
	<meta name="robots" content="all" />
	<title>PTM - Project and Task Manager</title>
	<%= javascript_include_tag "application", "prototype", "effects", "controls", "window" %>
	<style type="text/css" title="currentStyle" media="screen">
		@import '/stylesheets/styles.css';
    @import '/stylesheets/windows_themes/default.css';
	</style>
	<link rel="Shortcut Icon" type="image/x-icon" href="/images/favicon.ico" />	
</head>
<body>
<div class="thebox">
<%logo = cookies['ptm_logo'] || []%>
<div id="logo"<%if(logo==[] or logo!='display') %> style="display:none;"<%end%>>Project and Task Manager</div>
<% cur = @controller.class.controller_path -%>
<ul class="header">
<span <% if cur=="welcome" then%>id="currentmenuline" <%end%>class="menuline"><a href="/">dashboard</a></span>
<span <% if cur=="project" then%>id="currentmenuline" <%end%> class="menuline"><a href="/welcome/projects">projects</a></span>
<span <% if cur=="task" then%>id="currentmenuline" <%end%> class="menuline"><a href="/task">tasks</a></span>
<!--<span <% if cur=="writeboards" then%>id="currentmenuline" <%end%> class="menuline"><a href="/writeboards">writeboards</a></span>-->
<span <% if cur=="calendar" then%>id="currentmenuline" <%end%> class="menuline"><a href="/calendar">calendar</a></span>
<span <% if cur=="myinfo" then%>id="currentmenuline" <%end%> class="menuline"><a href="/myinfo">my info</a></span>
<span id="logout"><a href="/account/logout">logout</a></span>
<!--
<% if session['user'] -%>
<div id="user"><%=session['user'].name %></div>
<% end -%>
-->
<span class="menuline2"><a href="#" onclick="toggle_logo();return false;">toggle</a></span>
</ul>
<div class="side">
<h2>Welcome</h2>
You are signed as <%=session['user'].name %><br/>
<br/>
<% e = session['user']['email']; if e==nil or e==''-%>
You didn't <%=link_to("set your email", :controller=>:myinfo)%>. If you forget your password, you will not be able to retreive it.<br/><br/>
<% end -%>
<div id="notice"><% if flash[:notice] -%><%= flash[:notice] %><script>new Effect.Highlight('notice',{delay:1, duration:1})</script><% end -%></div>
<div id="members"><% if flash[:members] -%><%= flash[:members] %><script>new Effect.Highlight('members',{delay:1, duration:1})</script><% end -%></div>  
<div id="info"><% if flash[:info] -%><%= flash[:info] %><script>new Effect.Highlight('info',{delay:1, duration:1})</script><% end -%></div>  
</div>
<div class="content">
<%= @content_for_layout %>
<p><br/><br/><br/></p>
</div>
<div id="footer">
<span>PTM beta version</span> | <a href="/newfeatures.xml">RSS</a> | <a href="/privacy.html">Privacy</a> |
<a href="/terms.html">Terms of service</a> | Design by <a href="http://www.kumi.co.nr">Kumiko</a>
</div>
</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-88514-5";
urchinTracker();
</script>

</body>
</html>
